﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Runtime.CompilerServices;
using Windows.Foundation;
using Windows.Foundation.Collections;
using Windows.Graphics.Display;
using Windows.UI.ViewManagement;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Data;

namespace Cariwisata.Common
{
    class PointToMarginConverter : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, string language)
        {
            return (new Thickness(((Point)value).X,((Point)value).Y,0,0));
        }

        public object ConvertBack(object value, Type targetType, object parameter, string language)
        {
            return (new Point(((Thickness)value).Left,((Thickness)value).Top));
        }
    }
}
